import os
import os.path

path = '/etc/ansible/cron/'
dirs = os.listdir( path )
for f in dirs:
    fullpath = os.path.join(path,f)
    if os.path.isfile(fullpath) and os.path.splitext(f)[1]=='.ini':
        print(f)
   